/*
 * airpwm.h
 *
 *  Created on: 2017年7月23日
 *      Author: Case
 */

#ifndef CG_SRC_AIRPWM_H_
#define CG_SRC_AIRPWM_H_
#include "r_cg_macrodriver.h"

typedef	struct	pass{
	int	pass_1;
	int	pass_2;
	int 	pass_3;
	int 	pass_4;
	int 	pass_5;
}	AirPass;


void	Pwm_set(AirPass pass_set);
void	Pwm_set_pass1(int	pass1);
void	Pwm_set_pass2(int	pass2);
void	Pwm_set_pass3(int	pass3);
void	Pwm_set_pass4(int	pass4);
void	Pwm_set_pass5(int	pass5);
void	Pwm_init(void);
void	Pwm_unlock(void);
void Pwm_lock(void);

AirPass Air_unlock(void);
AirPass Air_lock(void) ;

void	Air_calibration(void);
void	Air_flying(void);
void	Air_play(void);
void	Air_camera(void);

AirPass	Air_play_fly(AirPass air,uint16_t height);
void	Air_play_Ctrlheight(uint16_t	height);

#endif /* CG_SRC_AIRPWM_H_ */
